package com.icarsaas.saas.tenant.cars.customer.model;

import com.icarsaas.saas.component.base.DataEntity;
import lombok.Data;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.*;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.*;

/**
 * @author xrong120@gmail.com
 * @title: Store
 * @projectName icarsaas
 * @description: 店铺信息
 * @date 2022/1/2211:47
 */
@Data @Entity @Table(name = "cars_store")
@DynamicInsert @DynamicUpdate
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Store extends DataEntity {
    @Id
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name="system-uuid", strategy = "org.hibernate.id.UUIDGenerator")
    @Column(name = "id", nullable = false, insertable = true, updatable = true, length = 36)
    private String id;
    private String no;//店铺编号
    private String name;//店铺名称
    private String linkman;//联系人
    private String mobile;//手机
    private String tel;//联系电话
    private String address;//地址
    private String  trade;//所属行业
    private String  scope;//经营范围
}
